#include "Sa2dDom.h"

const int physicsEngine::getActive_shape_hash_count() {
	return active_shape_hash_count;
}

const int physicsEngine::getActive_shape_hash_dim() {
	return active_shape_hash_dim;
}

const double physicsEngine::getDamping() {
	return damping;
}

const double physicsEngine::getGravity() {
	return gravity;
}

const string physicsEngine::getName() {
	return name;
}

const int physicsEngine::getStatic_shape_hash_count() {
	return static_shape_hash_count;
}

const int physicsEngine::getStatic_shape_hash_dim() {
	return static_shape_hash_dim;
}

void physicsEngine::setActive_shape_hash_count(int active_shape_hash_count) {
	this->active_shape_hash_count = active_shape_hash_count;
}

void physicsEngine::setActive_shape_hash_dim(int active_shape_hash_dim) {
	this->active_shape_hash_dim = active_shape_hash_dim;
}

void physicsEngine::setDamping(double damping) {
	this->damping = damping;
}

void physicsEngine::setGravity(double gravity) {
	this->gravity = gravity;
}

void physicsEngine::setName(string name) {
	this->name = name;
}

void physicsEngine::setStatic_shape_hash_count(int static_shape_hash_count) {
	this->static_shape_hash_count = static_shape_hash_count;
}

void physicsEngine::setStatic_shape_hash_dim(int static_shape_hash_dim) {
	this->static_shape_hash_dim = static_shape_hash_dim;
}

string physicsEngine::toString(int indent){
	string tabs = this->getIndent(indent);
	stringstream returnString;
	returnString << tabs << "physics engine:\n";
	returnString << tabs << "name: "<< name << "\n";
	returnString << tabs << "gravity: " << gravity << "\n";
	returnString << tabs << "damping : " << damping << "\n";
	returnString << tabs << "static shape hash dim: " << static_shape_hash_dim << "\n";
	returnString << tabs << "active shape hash dim: " << active_shape_hash_dim << "\n";
	returnString << tabs << "static shape hash count: " << static_shape_hash_count << "\n";
	returnString << tabs << "active shape hash count: " << active_shape_hash_count << "\n";

	return returnString.str();
}
